all: paper.pdf 

.SUFFIXES:  .tex .pdf

.tex.pdf:
	pdflatex $*.tex
	bibtex $*
	pdflatex $*.tex
	pdflatex $*.tex

paper.pdf: paper.tex biblio.bib background.tex methods.tex implementation.tex testing.tex performance.tex appendix.tex conclusion.tex

clean:
	rm *.aux *.bbl *.blg *.log *.pdf
